/*
 * 
 */

package com.spartancoder.accommodation.beans;

import com.spartancoder.accommodation.models.Place;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author andrei
 */
public class ConflictBean {

	private int placeId, room;

	public void fill(ResultSet rs) throws SQLException {
		setPlaceId(rs.getInt("place_id"));
		setRoom(rs.getInt("room"));
	}

	public int getPlaceId() {
		return placeId;
	}

	public PlaceBean getPlace() {
		return Place.fetch(getPlaceId());
	}

	public void setPlaceId(int placeId) {
		this.placeId = placeId;
	}

	public int getRoom() {
		return room;
	}

	public void setRoom(int room) {
		this.room = room;
	}
	
}
